.class public Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;
.super Landroid/app/Activity;
.source "TetheringProvisionActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/tecace/tetheringprovision/TetheringProvisionActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "ShowInsertSIMPopup"
.end annotation


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 981
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter "savedInstanceState"

    .prologue
    const/4 v2, 0x1

    .line 985
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 988
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 990
    const-string v0, "TetheringProvision"

    const-string v1, "onCreate on ShowInsertSIMPopup"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 992
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->setPreventScreenRotation()V

    .line 994
    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->requestWindowFeature(I)Z

    .line 995
    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->showDialog(I)V

    .line 996
    return-void
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 3
    .parameter "id"

    .prologue
    .line 1021
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1022
    .local v0, builder:Landroid/app/AlertDialog$Builder;
    const v1, 0x7f030008

    invoke-virtual {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 1023
    const v1, 0x7f030009

    invoke-virtual {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 1024
    const v1, 0x7f03000a

    invoke-virtual {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup$1;

    invoke-direct {v2, p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup$1;-><init>(Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1030
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    .line 1031
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    return-object v1
.end method

.method public setPreventScreenRotation()V
    .locals 3

    .prologue
    .line 999
    const-string v2, "window"

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/WindowManager;

    .line 1000
    .local v1, wm:Landroid/view/WindowManager;
    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 1001
    .local v0, display:Landroid/view/Display;
    invoke-virtual {v0}, Landroid/view/Display;->getOrientation()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    .line 1018
    :goto_0
    return-void

    .line 1003
    :pswitch_0
    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->setRequestedOrientation(I)V

    goto :goto_0

    .line 1007
    :pswitch_1
    const/16 v2, 0x9

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->setRequestedOrientation(I)V

    goto :goto_0

    .line 1011
    :pswitch_2
    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->setRequestedOrientation(I)V

    goto :goto_0

    .line 1015
    :pswitch_3
    const/16 v2, 0x8

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;->setRequestedOrientation(I)V

    goto :goto_0

    .line 1001
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
        :pswitch_3
    .end packed-switch
.end method
